Configure Calculated Attribute: Variables

The Variables tab lets you define one or more variables to use in the Calculated Attribute's expression. Using variables is optional, but they can help make your expressions easier to read and maintain.

Define a Variable

To define a variable:

  1. Navigate to the Variables tab of the Member Attribute Details screen.

  2. In the Display Name field, enter a name for the variable.

Note: The platform automatically generates an Internal Name based on the Display Name by converting all upper-case letters to lower-case letters, and converting spaces to underscores. The resulting Internal Name will be used as the variable name when defining the Calculated Attribute expression. Once the variable is created, you can't later edit this Internal Name.

  1. From the drop-down menu, select the Assignment Type for how the variable will be populated. These methods are described below in more detail.

  2. Click Add Variable.

  1. The system adds an area on the screen for defining the variable. Within this area, the Display Name and Assignment Type properties are populated based on what you entered above. Optionally, you can edit these properties as needed. In addition, the Internal Name is displayed, but this value can't be edited.

  2. From the Data Type drop-down menu, select the variable's Data Type.

  3. The Properties area is used to define how the variable is derived. The configuration options vary depending on the selected Assignment Type. See below for additional details on each of these Assignment Types.

  4. Click Save.

  5. Repeat the above steps as needed to define additional variables.

  6. Optionally, to delete a variable, click the Delete link next to it.

  7. Optionally, to view the underlying Groovy expression for a variable, click the Show Expression link. The Show Query pop-up window is displayed and populated with the expression. When finished, click Close.

Assignment Types

The Assignment Type defines how a variable is populated